/*
 * @Author: your name
 * @Date: 2021-02-25 17:15:51
 * @LastEditTime: 2021-02-26 16:20:47
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \xgwsp_frontendd:\project\tsx\demo-tsx\src\axios\request\api.type.ts
 */
import type { AxiosRequestConfig, AxiosResponse } from 'axios';

export interface RequestType {
  request(config: AxiosRequestConfig): Promise<AxiosResponse>;
}

export interface ConType {
  new (config: AxiosRequestConfig): any;
}

export interface ImportMeta {
  [x: string]: string | undefined;
}

export interface IMessage {
  message?: string;
  loading?: boolean;
}

export interface IParams extends AxiosRequestConfig {
  message?: string;
  loading?: boolean;
}
